package com.vdf.sisconsolid.archive;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;

import com.vdf.sisconsolid.util.UtilSC;

public class CivilStatusManager {

	public static Map<Byte, String> getCivilStatus() {
		Map<Byte, String> civilStatusMap = new HashMap<Byte, String>();

		InputStream inputStream = (InputStream) Thread.currentThread()
				.getContextClassLoader().getResourceAsStream("civilStatus.lst");
		String civilStatus = UtilSC.getStringFromInputStream(inputStream);

		for (String cs : civilStatus.split(",")){
			civilStatusMap.put(new Byte(cs.split("=")[0]), cs.split("=")[1]);
		}
		return civilStatusMap;
	}
}
